import request from '@/utils/request'

export function showTicketList(query) {
  return request({
    url: '/ticket/show',
    method: 'get',
    params: query
  })
}

export function deleteTicket(ticketId) {
  return request({
    url: '/ticket/remove',
    method: 'get',
    params: { 'ticketId': ticketId }
  })
}

export function saveTicket(data) {
  return request({
    url: '/ticket/save',
    method: 'post',
    data
  })
}

export function getTicket(query) {
  return request({
    url: '/ticket/get',
    method: 'get',
    params: query
  })
}

export function sendTicketDirect(data) {
  return request({
    url: '/ticket/send',
    method: 'post',
    data
  })
}
